import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /project/upload/accept
 */
export function postProjectUploadAccept(params: PostProjectUploadAcceptParams, input?: PostProjectUploadAcceptInput, config?: AxiosRequestConfig) {
    const paramsInput = {
        id: params.id,
        acceptTime: params.acceptTime,
        acceptRemark: params.acceptRemark,
    };
    return request.post<DeepRequired<any>>(`/project/upload/accept`, input, {
        params: paramsInput,
        ...config,
    });
}

export interface PostProjectUploadAcceptParams {
    id: number;
    acceptTime?: string;
    acceptRemark?: string;
}

export interface PostProjectUploadAcceptInput {
    file?: File;
}
